package control;

import Bean.Account;
import model.AdminModel;
import model.ResultSetTableModel;

public class AdminControl
{

    AdminModel adModel = new AdminModel();

    public ResultSetTableModel getAllAccount()
    {
        return adModel.getAllAccount();
    }

    public Boolean existUser(String user)
    {
        return adModel.existUser(user);
    }

    public void addAccount(Account acc)
    {
        adModel.addAccount(acc);
    }

    public void delAccount(String user)
    {
        adModel.delAccount(user);
    }
}
